package com.qf.controller;

import com.qf.pojo.BaseResp;
import com.qf.service.SendPhone;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping(value = "phone")
public class PhoneSendController {

    @Autowired
    SendPhone sendPhone;

    @PostMapping(value = "/sendphone")
    @ResponseBody
    public BaseResp send(@RequestBody Map map){
        return sendPhone.send(map.get("phone").toString());
    }


}
